Oops, 30 is a multiple of fifteen.

Akinori MUSHA 10 years ago
parent
commit
786b0f3d06
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/models/agents/scheduler_agent.rb

+ 1 - 1
app/models/agents/scheduler_agent.rb

@@ -95,7 +95,7 @@ module Agents
95 95
       if (spec = options['schedule']).present?
96 96
         begin
97 97
           cron = Rufus::Scheduler::CronLine.new(spec)
98
-          unless second_precision_enabled || (cron.seconds - [0, 15, 45, 60]).empty?
98
+          unless second_precision_enabled || (cron.seconds - [0, 15, 30, 45, 60]).empty?
99 99
             errors.add(:base, "second precision schedule is not allowed in this service")
100 100
           end
101 101
         rescue ArgumentError